save utf 8 text file in python

149

python write txt utf8 -

import codecs

file = codecs.open("lol", "w", "utf-8")
file.write(u'\ufeff')
file.close()

Comments

Submit
0 Comments